<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="org.springside.modules.security.springsecurity.SpringSecurityUtils" %>
<%@ include file="/common/taglibs.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>敏感词管理</title>
	<%@ include file="/common/meta.jsp" %>
	<link href="${ctx}/css/yui.css" type="text/css" rel="stylesheet"/>
	<link href="${ctx}/css/style.css" type="text/css" rel="stylesheet"/>
	<script src="${ctx}/js/jquery.js" type="text/javascript"></script>
	<script src="${ctx}/js/table.js" type="text/javascript"></script>
</head>

<body>
<div id="doc3">
<%@ include file="/common/header.jsp" %>
<div id="bd">
	<div id="yui-main">
	<div class="yui-b">
	
	<form id="mainForm" action="words.action" method="get">
		<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
		<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
		<input type="hidden" name="page.order" id="order" value="${page.order}"/>

		<div id="message"><s:actionmessage theme="custom" cssClass="success"/></div>
		<div id="filter">
			敏感词: <input type="text" name="filter_LIKES_words" value="${param['filter_LIKES_words']}" size="9"/>			
			<input type="button" value="搜索" onclick="search();"/>
		</div>
		<div>
			第${page.pageNo}页, 共${page.totalPages}页
			<a href="javascript:jumpPage(1)">首页</a>
			<s:if test="page.hasPre"><a href="javascript:jumpPage(${page.prePage})">上一页</a></s:if>
			<s:if test="page.hasNext"><a href="javascript:jumpPage(${page.nextPage})">下一页</a></s:if>
			<a href="javascript:jumpPage(${page.totalPages})">末页</a>
			<a href="words!input.action">增加敏感词</a>
		</div>
		<div id="content">
			<table id="contentTable">
				<tr>
					<th>序号</th>
					<th><a href="javascript:sort('words','asc')">查看全部</a></th>
					<th><a href="javascript:sort('words','asc')">查看最近两天</a></th>
					<th><a href="javascript:sort('words','asc')">查看监控人员全部</a></th>
					<th><a href="javascript:sort('words','asc')">查看监控人员两天</a></th>
					<th><a href="javascript:sort('weight','asc')">排序权重</a></th>
					<th><a href="javascript:sort('ctime','asc')">加入时间</a></th>			
					<th>操作</th>
				</tr>

				<s:iterator status="spin" value="page.result">
					<tr>
						<td><span id="list_number_txt"><s:property
										value="#spin.count+((page.pageNo-1)*page.pageSize)" /> </span></td>					
						<td><a href="${ctx}/admin/msg!list.action?content=${words}" target="_blank">${words}</a>&nbsp;</td>
						<td><a href="${ctx}/admin/msg!list.action?content=${words}&sdateStr=${sdateStr}&edateStr=${edateStr}" target="_blank">${words}</a>&nbsp;</td>
						<td><a href="${ctx}/admin/msg!list.action?content=${words}&vpstats=1" target="_blank">${words}</a>&nbsp;</td>
						<td><a href="${ctx}/admin/msg!list.action?content=${words}&vpstats=1&sdateStr=${sdateStr}&edateStr=${edateStr}" target="_blank">${words}</a>&nbsp;</td>
						<td>${weight}</td>
						<td>${ctime}</td>
						<td>&nbsp;							
							<a href="words!input.action?id=${id}">修改</a>&nbsp;
							<a href="words!delete.action?id=${id}">删除</a>
						</td>
					</tr>
				</s:iterator>
			</table>
		</div>

		<div>
			第${page.pageNo}页, 共${page.totalPages}页
			<a href="javascript:jumpPage(1)">首页</a>
			<s:if test="page.hasPre"><a href="javascript:jumpPage(${page.prePage})">上一页</a></s:if>
			<s:if test="page.hasNext"><a href="javascript:jumpPage(${page.nextPage})">下一页</a></s:if>
			<a href="javascript:jumpPage(${page.totalPages})">末页</a>
			<a href="vp!input.action">增加敏感词</a>
		</div>
	</form>
	</div>
	</div>
</div>
<%@ include file="/common/footer.jsp" %>
</div>
</body>
</html>
